 /**
 * 子模块路由
 * DHpai
 */

var router = function($urlRouterProvider, $stateProvider){

 	$stateProvider

    //公示信息
    .state('app.publicInfo', {
        url: "/publicinfo/list",
        views: {
            'main@' : {
                template : require('./views/publicInfo.html'),
                controller : 'publicInfo',
            }
        },
        resolve:{
            getDate : function(utilservice){
                return utilservice.getDate;
            }
        }
    })

    //企业申报
    .state('app.applyForRoster', {
        url: "/applyfn/list",
        views: {
            'main@' : {
                template : require('./views/applyForRoster.html'),
                controller : 'applyForRoster',
            }
        },
        resolve:{
            
        }
    })

    //出境游团信息
    .state('app.outboundTravel', {
        url: "/outbound/list",
        views: {
            'main@' : {
                template : require('./views/outboundTravel.html'),
                controller : 'outboundTravel',
            }
        },
        resolve:{
            
        }
    })

    //游团报名
    .state('app.outboundSale', {
        url: "/outboundsale/list",
        views: {
            'main@' : {
                template : require('./views/outboundSaleList.html'),
                controller : 'outboundSaleList',
            }
        },
        resolve:{
            
        }
    })

    //游团信息查询
    .state('app.travelInfoSearch', {
        url: "/outboundinfo/list",
        views: {
            'main@' : {
                template : require('./views/travelInfoSearch.html'),
                controller : 'travelInfoSearch',
            }
        },
        resolve:{
            getDate : function(utilservice){
                return utilservice.getDate;
            }
        }
    })

    //游团信息查询
    .state('app.dataForSearch', {
        url: "/dataforsearch/list",
        views: {
            'main@' : {
                template : require('./views/dataForSearch.html'),
                controller : 'dataForSearch',
            }
        },
        resolve:{
            getDate : function(utilservice){
                return utilservice.getDate;
            }
        }
    })

    //待办事项
    .state('app.toDoList', {
        url: "/todolist/list",
        views: {
            'main@' : {
                template : require('./views/toDoList.html'),
                controller : 'toDoList',
            }
        },
        resolve:{
            getDate : function(utilservice){
                return utilservice.getDate;
            }
        }
    })

    //待办事项
    .state('app.dealItem', {
        url: "/dealitem/list",
        views: {
            'main@' : {
                template : require('./views/dealItem.html'),
                controller : 'dealItem',
            }
        },
        resolve:{
            getDate : function(utilservice){
                return utilservice.getDate;
            }
        }
    })

   


	;

};

module.exports = router;